// 学历列表
export const educations = [
  '小学', '初中', '高中', '本科', '硕士', '博士'
]

// 年度数据
export const yearsData = getYearList(-1, 30) 

export function getYearList(start, end) {
  let config=$.extend({},{start:start,end:end});
  var nowYear = new Date().getUTCFullYear();//当前年份
  var startYear = nowYear +config.start;//起始年份
  var endYear = nowYear + config.end;//结束年份，默认为当前年份

  var jsonstr = [];
  for (var i = startYear; i <= endYear; i++) {
      var arr = {"id": i, "code": i, "name": i};
      jsonstr.push(arr);
  }
  return jsonstr;
}
